package com.zc.angelica.controller;


import com.zc.angelica.entity.ClientInfo;
import com.zc.angelica.entity.ResponseData;
import com.zc.angelica.service.ClientInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * 客户端信息表(ClientInfo)表控制层
 *
 * @author makejava
 * @since 2022-04-10 18:33:26
 */
@RestController
@RequestMapping("/clientInfo")
public class ClientInfoController{

    @Autowired
    private ClientInfoService clientInfoService;


    @PostMapping("/addClientInfo")
    public ResponseData addClientInfo(@RequestBody ClientInfo clientInfo) {
        return clientInfoService.addClientInfo(clientInfo);
    }


    @GetMapping("/getClientInfo")
    public ResponseData getClientInfo() {
        return clientInfoService.getClientInfo();
    }


    @GetMapping("/updateClientInfo")
    public ResponseData updateClientInfo(ClientInfo clientInfo) {
        return clientInfoService.updateClientInfo(clientInfo);
    }


    @GetMapping("/deleteClientInfo")
    public ResponseData deleteClientInfo(Long id) {
        return clientInfoService.deleteClientInfo(id);
    }


}

